package o;

import android.content.ContentResolver;
import android.content.res.AssetFileDescriptor;
import android.net.Uri;
import android.os.ParcelFileDescriptor;
import androidx.annotation.NonNull;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public class vs<Data> implements vk<Uri, Data> {
    private static final Set<String> ˏ = Collections.unmodifiableSet(new HashSet(Arrays.asList(new String[]{"file", "android.resource", "content"})));
    private final a<Data> ˋ;

    public interface a<Data> {
        sg<Data> ˊ(Uri uri);
    }

    public static class b implements vr<Uri, InputStream>, a<InputStream> {
        private final ContentResolver ॱ;

        public b(ContentResolver contentResolver) {
            this.ॱ = contentResolver;
        }

        public sg<InputStream> ˊ(Uri uri) {
            return new st(this.ॱ, uri);
        }

        @NonNull
        public vk<Uri, InputStream> ˏ(vo voVar) {
            return new vs(this);
        }

        public void ॱ() {
        }
    }

    public static final class c implements vr<Uri, AssetFileDescriptor>, a<AssetFileDescriptor> {
        private final ContentResolver ॱ;

        public c(ContentResolver contentResolver) {
            this.ॱ = contentResolver;
        }

        public vk<Uri, AssetFileDescriptor> ˏ(vo voVar) {
            return new vs(this);
        }

        public void ॱ() {
        }

        public sg<AssetFileDescriptor> ˊ(Uri uri) {
            return new sh(this.ॱ, uri);
        }
    }

    public static class e implements vr<Uri, ParcelFileDescriptor>, a<ParcelFileDescriptor> {
        private final ContentResolver ˊ;

        public e(ContentResolver contentResolver) {
            this.ˊ = contentResolver;
        }

        public sg<ParcelFileDescriptor> ˊ(Uri uri) {
            return new sm(this.ˊ, uri);
        }

        @NonNull
        public vk<Uri, ParcelFileDescriptor> ˏ(vo voVar) {
            return new vs(this);
        }

        public void ॱ() {
        }
    }

    public /* synthetic */ boolean ˋ(@NonNull Object obj) {
        return ˎ((Uri) obj);
    }

    public /* synthetic */ o.vk.c ˎ(@NonNull Object obj, int i, int i2, @NonNull sc scVar) {
        return ˋ((Uri) obj, i, i2, scVar);
    }

    public vs(a<Data> aVar) {
        this.ˋ = aVar;
    }

    public o.vk.c<Data> ˋ(@NonNull Uri uri, int i, int i2, @NonNull sc scVar) {
        return new o.vk.c(new aai(uri), this.ˋ.ˊ(uri));
    }

    public boolean ˎ(@NonNull Uri uri) {
        return ˏ.contains(uri.getScheme());
    }
}
